package com.mx.tool.form.window.website;

import javax.swing.*;

import static com.mx.tool.enums.WebsiteEnum.*;

/**
 * @Author: 徐建鹏.
 * @create: 2021-11-22 13:44
 * @Description:
 */
public class FrontWindow extends WebsiteWindow {
    private JPanel jPanel;
    private JButton jqueryButton;
    private JButton reactButton;
    private JButton cssButton;
    private JButton elementButton;
    private JButton vueButton;
    private JButton bootstraButton;
    private JButton uniappButton;
    private JButton npmButton;

    public JPanel getContent() {
        return jPanel;
    }

    public FrontWindow() {
        jqueryButton.addActionListener(e -> openUrl(JQUERY.value()));
        reactButton.addActionListener(e -> openUrl(REACT.value()));
        cssButton.addActionListener(e -> openUrl(CSS.value()));
        elementButton.addActionListener(e -> openUrl(ELEMENT.value()));
        vueButton.addActionListener(e -> openUrl(VUE.value()));
        bootstraButton.addActionListener(e -> openUrl(BOOTSTRAP.value()));
        uniappButton.addActionListener(e -> openUrl(UNIAPP.value()));
        npmButton.addActionListener(e -> openUrl(NPM.value()));
    }
}
